package com.dragon.graduation.finalDefense.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dragon.graduation.finalDefense.controller.dto.FinalDefenseSearchDTO;
import com.dragon.graduation.finalDefense.controller.vo.FinalDefenseVO;
import com.dragon.graduation.finalDefense.entity.FinalDefenseEntity;
import com.dragon.graduation.finalDefense.mapper.FinalDefenseMapper;
import com.dragon.graduation.finalDefense.service.FinalDefenseService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 终期答辩表 服务实现类
 * </p>
 *
 * @author dragon
 * @since 2025-02-28 21:18:39
 */
@Service
public class FinalDefenseServiceImpl extends ServiceImpl<FinalDefenseMapper, FinalDefenseEntity> implements FinalDefenseService {

    @Override
    public FinalDefenseEntity findByProjectIdAndStudentId(Integer projectId,Integer studentId) {
        return baseMapper.selectByProjectIdAndStudentId( projectId,studentId);
    }

    @Override
    public Page<FinalDefenseVO> findPages(Page<FinalDefenseEntity> entityPage, FinalDefenseSearchDTO searchDTO) {
        return baseMapper.selectPages(entityPage, searchDTO);
    }
}
